package com.project.bean.dynaProxy;

public class Test {
    public static void main(String[] args) {
        ProxyFactory factory = new ProxyFactory(new BossChen());
        IEat iEat = (IEat) factory.getProxy();
        iEat.eat();
        iEat.drink();
    }
}
